/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package advsm;

import javax.swing.UIManager;
import logic.ControladorVentas;
import logic.VentaArray;

/**
 *
 * @author Dani
 */
public class ADVSM {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String laf = UIManager.getSystemLookAndFeelClassName();
        try {
            UIManager.setLookAndFeel(laf);
        } catch (Exception ex) {
            return;
        }
        
        VentaArray r = VentaArray.getArray();
        ControladorVentas controlador = new ControladorVentas (r);
        MainWindow window = new MainWindow(controlador);
        
        r.addObserver(window);
        r.forceUpdate();
        window.setVisible(true);
        


        //r.requestSave("src/logic/Ventas.txt");
    }
}
